// 生产环境下的配置项
const path = require('path');

const { merge } = require('webpack-merge');
// const WebpackMerge = require('webpack-merge');
// 引入公共模块
let baseConfig = require('./webpack.config.base');
console.log(merge);

module.exports = merge(baseConfig, {
  mode: "production",
  output: {
    filename: 'bundle.[hash].min.js',
    path: path.resolve(__dirname, 'dist')
  }
})